package com.aaa.a1103.demo02;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test02 {
    public static void main(String[] args) {
       Swimming s=()->{
           System.out.println("ssssssss");
       };
        foo(s);
    }
    public static void foo(Swimming swim) {
        swim.swimming();
    }
}
@FunctionalInterface
interface Swimming{
    public void swimming();
}